package com.zwxbc.funplay.dao;

import com.zwxbc.funplay.entity.Developer;

import java.util.List;

public interface DeveloperDao {
	/**
	 * 添加开发商
	 * @param developer
	 */
	int addDeveloper(Developer developer);

	/**
	 *  登录开发商
	 * @param developer
	 * @return
	 */
	Developer developerLogin(Developer developer);

	/**
	 *  根据id获取开发商
	 * @param developerId
	 * @return
	 */
	Developer getDeveloperById(Long developerId);

	/**
	 * 列表开发商
	 * @return
	 */
	List<Developer> getAllDevelopers();

	/**
	 * 修改开发商
	 * @param developer
	 */
	int updateDeveloper(Developer developer);

	/**
	 * 删除开发商
	 * @param developerId
	 */
	int deleteDeveloper(Long developerId);

	/**
	 * 判断开发商是否存在
	 * @param username
	 * @param contact
	 * @param email
	 * @return
	 */
	boolean isDeveloperExists(String username, String contact, String email);
}
